import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import Vant from 'vant'
import myPinnia from 'pinia-plugin-persistedstate'
// 数据访问
import axios from 'axios'
// 添加JWT token信息
axios.defaults.headers.common["Authorization"] = "Bearer " + window.localStorage.getItem("token");
 
const app = createApp(App)
app.use(createPinia().use(myPinnia))
app.use(createPinia().use(myPinnia))
app.use(router)
app.use(Vant)
app.mount('#app')
